Ext.onReady(function(){
    var tree = new Ext.tree.ColumnTree({
        el:'tree-ct',
        width:"100%",
        autoHeight:true,
        rootVisible:false,
        autoScroll:true,
        //title: 'Example Tasks',
        
        columns:[{
            header:'名称',
            width:150,
            dataIndex:'safename'
        },{
            header:'介绍',
            width:370,
            dataIndex:'duration'
        },{
            header:'选择',
            width:100,
            dataIndex:'user'
        }],

        loader: new Ext.tree.TreeLoader({
            dataUrl:'column-data.json',
            uiProviders:{
                'col': Ext.tree.ColumnNodeUI
            }
        }),

        root: new Ext.tree.AsyncTreeNode({
            text:'Tasks'
        })
    });
    tree.render();
});